package com.nashuju.web.entity.sys;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.nashuju.web.common.TreeAware;


public class SysClass implements TreeAware {
    private int scId;
    private Integer parentId;
    private String className;
    private String description;
    private String url;
    private String urltarget;
    private Integer pos;
    private Integer isshow;
    private Integer issystem;
    private Integer isindex;
    private Integer islist;
    private Integer classtypeid;
    private Date created;
    private Date edited;
    private String formobjectlist;


    public String getFormobjectlist() {
        return formobjectlist;
    }

    public void setFormobjectlist(String formobjectlist) {
        this.formobjectlist = formobjectlist;
    }


    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Date getEdited() {
        return edited;
    }

    public void setEdited(Date edited) {
        this.edited = edited;
    }

    private List<SysClass> children;

    public List<SysClass> getChildren() {
        return children;
    }

    public void setChildren(List<SysClass> children) {
        this.children = children;
    }

    public void setScId(int scId) {
        this.scId = scId;
    }

    public int getScId() {
        return this.scId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public Integer getParentId() {
        return this.parentId;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getClassName() {
        return this.className;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getDescription() {
        return this.description;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getUrl() {
        return this.url;
    }

    public void setUrltarget(String urltarget) {
        this.urltarget = urltarget;
    }

    public String getUrltarget() {
        return this.urltarget;
    }

    public void setClasstypeid(Integer classtypeid) {
        this.classtypeid = classtypeid;
    }

    public Integer getClasstypeid() {
        return this.classtypeid;
    }

    @Override
    public int getId() {
        return this.scId;
    }

    @Override
    public String getText() {
        return className;
    }

    public Integer getPos() {
        return pos;
    }

    public void setPos(Integer pos) {
        this.pos = pos;
    }

    public Integer getIsshow() {
        return isshow;
    }

    public void setIsshow(Integer isshow) {
        this.isshow = isshow;
    }

    public Integer getIssystem() {
        return issystem;
    }

    public void setIssystem(Integer issystem) {
        this.issystem = issystem;
    }

    public Integer getIsindex() {
        return isindex;
    }

    public void setIsindex(Integer isindex) {
        this.isindex = isindex;
    }

    public Integer getIslist() {
        return islist;
    }

    public void setIslist(Integer islist) {
        this.islist = islist;
    }

    @JsonProperty("_parentId")
    public Integer getEasyUIParentId() {
        return parentId;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        return this.scId == ((SysClass) obj).scId;
    }

}
